<!-- BEGIN: PAGECONTENT -->
        <script type="text/javascript">
			$(document).ready(function() {
			    //validate signup form on keyup and submit
			    $("#admin_form").validate({
			        rules: {
			        	Title: {
			                required: true,
			                maxlength: 10000
			            }
			        },
			        messages: {
			        	Title: {
			            	required: "Vui lòng diền title của video",
			                maxlength: "This field can not have max lenght than 10000 character"
			            }
			        }
			    });
			    
			    // Initialise FancyBox Modal window:
			    $("a.fancy").fancybox({
			        'titlePosition' : 'inside'
			    });
			});
		</script>
		<style type="text/css">
		    #admin_form label.error { width: 100%; color:red; margin-top:5px;}
		</style>
        <script type="text/javascript">
            function BrowseServer()
            {
                var finder = new CKFinder();
                finder.basePath = 'images/';
                finder.selectActionFunction = SetFileField;
                finder.popup();
            }
            // This is a sample function which is called when a file is selected in CKFinder.
            function SetFileField( fileUrl )
            {
            	$("#ImageLink").val(fileUrl);
                $("a.fancy").attr("href", fileUrl);
                $("#upload-img").attr("src",fileUrl);
            }
        </script>
        <div class="form-content-page">
            <section>
			        <form class="block-content form" id="admin_form" method="post" action="submit.php?ctrl={CONTROLLER}&act={ACTION}">
			            <h2>{FORMTITLE}</h2>
			            <!-- BEGIN: FORMITEM -->
			            <fieldset>
			                <legend>
			                    Thông tin ảnh hiển thị
			                </legend>
			                <input type="hidden" name="ID" id="ID" value="{FORMITEM.ID}">
			                <div class="columns">
                                <div class="colx2-left">
                                	<div class="imageBox">
	                                	<label for="simple-calendar">Link chia sẻ Youtube: </label>
	                                    <div style="width: 100%" align="center">
	                                   		<iframe width="560" height="315" src="http://www.youtube.com/embed/{ITEM.view}" frameborder="0" allowfullscreen></iframe>
	                                	</div>
	                                	<br />
	                                	<p>
	                                    	<input type="text" name="VideoLink" id="VideoLink" value="{FORMITEM.VideoLink}" class="full-width">
	                                    </p>
		                            </div>
                                </div>
                                <div class="colx2-right">
                                    <p>
					                    <label for="simple-required">Tiêu đề của video:</label>
					                    <input type="text" name="Title" id="Title" value="{FORMITEM.Title}" class="full-width">
					                </p>
					                <p>
					                    <label for="Description">Miêu tả: </label>
					                    <textarea name="Description" id="Description" class="full-width height-100">{FORMITEM.Description}</textarea>
					                </p>
                                </div>
                            </div>
			                
			            </fieldset>
			            <fieldset>
			                <legend>
			                    Nội dung SEO
			                </legend>
			                <div class="columns">
                                <div class="colx2-left">
                                	<p>
					                    <label for="TitleTag">Thẻ Title:</label>
					                    <input type="text" name="TitleTag" id="TitleTag" value="{FORMITEM.TitleTag}" class="full-width">
					                </p>
					                <p>
					                    <label for="URL">Đường dẫn URL: (chỉ chứa các chữ cái không dấu và dấu gách ngang "-")</label>
					                    <input type="text" name="URL" id="URL" value="{FORMITEM.URL}" class="full-width">
					                </p>
					                <p>
					                    <label for="MetaKeyword">Meta Keyword: (các từ khóa ngăn cách nhau bằng dấu phẩy ",")</label>
					                    <input type="text" name="MetaKeyword" id="MetaKeyword" value="{FORMITEM.MetaKeyword}" class="full-width">
					                </p>
                                </div>
                                <div class="colx2-right">
                                    <p>
					                    <label for="MetaDescription">Meta Description:</label>
					                    <textarea name="MetaDescription" id="MetaDescription" class="full-width height-150">{FORMITEM.MetaDescription}</textarea>
					                </p>
                                </div>
                            </div>
			            </fieldset>
			            <fieldset class="grey-bg no-margin">
			                <p class="input-with-button" align="center">
			                    <button type="submit">
			                        hoàn thành
			                    </button>
			                    <a href="maincontent.php?ctrl={CONTROLLER}&act=view-grid"> 
				                    <button type="button">
		                                hủy bỏ
		                            </button> 
	                            </a>
			                </p>
			            </fieldset>
			            <!-- BEGIN: FORMITEM -->
			        </form>
			</section>
        </div>
<!-- END: PAGECONTENT -->